package com.example.demo.service.impl;

import com.example.demo.domain.Orderform;
import com.example.demo.mapper.OrderformMapper;
import com.example.demo.service.OrderformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderformServiceImpl implements OrderformService {

    @Autowired
    OrderformMapper orderformMapper;

    //查询所有
    @Override
    public List<Orderform> findAllOrderform() {
        return orderformMapper.findAllOrderform();
    }

    //删除预定信息
    @Override
    public int deleteOrderform(Integer id){
        return orderformMapper.deleteOrderform(id);
    }
}
